
// import {
//   restartAutoSwitch,
//   clearAutoSwitch
// } from '@/utils/scene'
import autoSwitchSceneMixin  from '@/mixins/switch-scene'

export default {
  mixins: [autoSwitchSceneMixin],
  data() {
    return {
      showModal: false
    }
  },
  methods: {
    openModal(obj) {
      this.showModal = true
      this.handleClearAutoSwitchScene()
    },
    closeModal() {
      $VM.$krp.removeDragSayModel()
      this.showModal = false
      this.handleRestartAutoSwitchScene()
    },
    beforeCloseHandler() {
      this.closeModal()
    },
    handleSave() {
      this.closeModal()
    }
  }
}
